using System;
using JoyfulHomeJourney.BackEnd.Infrastructure.EFCore;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Requests.Objects;
namespace JoyfulHomeJourney.BackEnd.Server.Instances.Extends.Requests
{
	public static class EntityTaskCategoriesCreateExtend
{
		public static TaskCategories ToCreateEntity(this RequestTaskCategoriesDto dto)
		{
			return new TaskCategories
			{
				TcAccountId = dto.accountId,
				TcColor = dto.color,
				TcName = dto.name,
			};
		}
	}
}
